package com.novax.ex.activity.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = {"com.novax.ex.common","com.novax.ex.activity"})
@MapperScan("com.novax.ex.activity.infrastructure")
@EnableFeignClients
@PropertySource(value = {"${config.path.main}", "${config.path.mysql-activity}", "${config.path.redis}", "${config.path.rabbitmq}", "${config.path.kafka-tracking}"})
public class ActivityProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ActivityProviderApplication.class, args);
    }

}
